package com.springcloud.demo.dynamicTable.autocode.dao;

import com.springcloud.demo.dynamicTable.autocode.utils.SQLProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface GeneratorDao {

    @SelectProvider(type = SQLProvider.class, method = "getTableInfo")
	Map<String, String> getTableInfo(String tableName);

    @SelectProvider(type = SQLProvider.class, method = "getColumnInfo")
	List<Map<String, String>> getColumnInfo(String tableName);

}
